import request from '@/utils/request'

// 查询退伍红军老战士信息列表
export function listRetired_red_army(query) {
  return request({
    url: '/archive_info/retired_red_army/list',
    method: 'get',
    params: query
  })
}

// 查询退伍红军老战士信息详细
export function getRetired_red_army(id) {
  return request({
    url: '/archive_info/retired_red_army/' + id,
    method: 'get'
  })
}

// 新增退伍红军老战士信息
export function addRetired_red_army(data) {
  return request({
    url: '/archive_info/retired_red_army',
    method: 'post',
    data: data
  })
}

// 修改退伍红军老战士信息
export function updateRetired_red_army(data) {
  return request({
    url: '/archive_info/retired_red_army',
    method: 'put',
    data: data
  })
}

// 删除退伍红军老战士信息
export function delRetired_red_army(id) {
  return request({
    url: '/archive_info/retired_red_army/' + id,
    method: 'delete'
  })
}

// 导出退伍红军老战士信息
export function exportRetired_red_army(query) {
  return request({
    url: '/archive_info/retired_red_army/export',
    method: 'get',
    params: query
  })
}